package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限表(SysPermission)实体类
 *
 * @author jsm
 * @since 2023-03-27 16:25:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_permission")
public class SysPermission implements Serializable {
    private static final long serialVersionUID = 961671750546016033L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 权限或菜单名
     */
    @TableField(value = "perm_name")
    private String permName;

    /**
     * 类型：1.菜单 2.权限
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 权限或菜单对应的组件名
     */
    @TableField(value = "perm_tag")
    private String permTag;

    /**
     * 菜单的页面url
     */
    @TableField(value = "url")
    private String url;

    /**
     * 菜单对应的图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 菜单上一级的id
     */
    @TableField(value = "parentid")
    private Integer parentid;

    /**
     * 菜单的级别：1级 2级 3级
     */
    @TableField(value = "level")
    private Integer level;

    /**创建时间*/
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**更新时间*/
    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
